package main.gui;

import java.awt.GridLayout;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;

public class ProgressPanel extends JPanel {

	private static final long serialVersionUID = -6301305373171210907L;

	private JLabel status;
	private JProgressBar progressBar;
	
	public ProgressPanel() {
		status = new JLabel("");
		progressBar = new JProgressBar(JProgressBar.HORIZONTAL, 0, 100);
		
		this.setLayout(new GridLayout(2, 1));
		this.add(status);
		this.add(progressBar);
	}
	
	public void setStatus(String newStatus) {
		status.setText(newStatus);
	}
	
	public void setProgress(int value) {
		progressBar.setValue(value);
	}
	
}
